Local Master Key Triple DES Variant scheme

Variants are applied to the Local Master Key in the HSM for encryption of double and triple length keys. These variants are calculated as follows:

1.        Select the appropriate LMK pair, for example:

0123 4567 89AB CDEF 3131 3131 3131 3131.

2.        Identify which Variant of the LMK is required and select the appropriate offset value:

Variant 2: A6.

3.        Exclusive-OR add the selected offset to the first byte of the second key within the LMK pair (31 in the example above).

4.        Replace the left-most byte of the LMK pair with the result of Step 3 and use the  resulting key as the specified Variant:

Variant 2 = 0123 4567 89AB CDEF 9731 3131 3131 3131.

The variants applied are as follows:

Double length key        Key 1 of 2 – A6

                                    Key 2 of 2 – 5A

Triple length key           Key 1 of 3 – 6A

                                    Key 2 of 3 – DE

                                    Key 3 of 3 – 2B

 


When the Variants are applied to the standard test LMK set, the first bytes of the second key are as follows:

 

LMK Pair

First byte of second key of the LMK

Double length Key

Scheme Tag “U”

Triple Length Key

Scheme Tag “T”

1 of 2

2 of 2

1 of 3

2 of 3

3 of 3

04 - 05

F7

0B

3B

8F

7A

06 – 07

D6

2A

1A

AE

5B

14 – 15

57

AB

9B

2F

DA

16 – 17

A7

5B

6B

DF

2A

18 - 19

A7

5B

6B

DF

2A

20 – 21

42

5E

6E

DA

2F

22 - 23

B6

4A

7A

CE

3B

24 – 25

B3

4F

7F

CB

3E

26 – 27

BF

43

73

C7

32

28 –29

BA

46

76

C2

37

30 - 31

83

7F

4C

FB

0E

32 – 33

8F

73

43

F7

02

34 - 35

8A

76

46

F2

07

35 – 37

97

6B

5B

EF

1A

38 - 39

A7

5B

6B

DF

2A